home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Compilers⁄Interps / kevoSource / portBrowser.h < prev    next >
Text File  |  1993-03-13  |  2KB  |  91 lines

  1. /* Kevo -- a prototype-based object-oriented language */
  2. /* (c) Antero Taivalsaari 1991-1993                   */
  3. /* Some parts (c) Antero Taivalsaari 1986-1988           */
  4. /* portBrowser.h: Non-portable object browser          */
  5.  
  6. /*---------------------------------------------------------------------------*/
  7. /* Graphical user interface (GUI) initialization */
  8.  
  9. /* Basic browser operations */
  10.  
  11. void        openBrowser();
  12. void        reuseBrowser();
  13. void        deleteBrowser();
  14. void        unlinkBrowser();
  15. WindowPtr    findBrowser();
  16.  
  17. void        refreshBrowser();
  18. void        updateBrowser();
  19. void        updateBrowserTitle();
  20. void        recolumnBrowser();
  21. void        handleDoubleClick();
  22.  
  23. void        browseCloneFamilies();
  24. void        assignObject();
  25. void        openShellForThis();
  26.  
  27.  
  28. /* Basic icon list operations */
  29.  
  30. ListHandle    buildIconList();
  31. void        deleteIconList();
  32. void        resizeIconList();
  33. void        determineBrowserWindowSize();
  34.  
  35. int            nextSelectedCell();
  36. int            prevSelectedCell();
  37. int            countSelectedCells();
  38.  
  39. void        addNewCell();
  40. void        removeCell();
  41. void        hideShowCell();
  42.  
  43. void        addToCell();
  44. void        removeFromCell();
  45. void        renameCell();
  46.  
  47. int            cellToIndex();
  48. PAIR*        cellToPair();
  49.  
  50. PAIR*        indexedFind();
  51. PAIR*        getNextMaskedPair();
  52. int            maskedCountPairs();
  53. int            countArraySlots();
  54.  
  55.  
  56. /* Auxiliary operations */
  57.  
  58. void        decodeObjectType();
  59. void        decodeObjectName();
  60. char*        asString();
  61.  
  62.  
  63. /* 
  64.     Each icon list has an associated structure called LINFO,
  65.     which contains information about the view mode etc.
  66. */
  67.  
  68. typedef struct linfoStruct    LINFO;
  69.  
  70. struct linfoStruct {
  71.     int            lMode;            /* icon list view mode (ALL, HIDDEN, or NONHIDDEN)    */
  72.     OBJECT*        target;            /* the object being browsed                         */
  73.     WindowPtr    prevBrowser;    /* pointer to the previous browser in the system    */
  74. };
  75.  
  76.  
  77. /* Window info operations */
  78.  
  79. LINFO*     createLinfo();
  80. void     deleteLinfo();
  81.  
  82. int         getViewMode();
  83. void     setViewMode();
  84.  
  85. OBJECT*     getBrowserTarget();
  86. void     setBrowserTarget();
  87.  
  88. WindowPtr getPrevBrowser();
  89. void       setPrevBrowser();
  90.  
  91.